<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<title>view/workArea/parts/partsMenu</title>
		<!-- css代码 start -->
		<link href="../../../css/mui.min.css" rel="stylesheet" />
		<link href="../../../css/global.css" rel="stylesheet" />
		<link href="../../../css/style.css" rel="stylesheet" />
		<style>

		</style>
		<!-- css代码 end -->
	</head>
	<body>
		<!-- html代码 start -->
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 id="title" class="mui-title">备件管理</h1>
		</header>
		<div class="mui-content">
			<ul class="part_cen" style="margin: 0;">
				<li id="applyParts">备件申请<img src="../../../images/icon_349.png" />
					<span class="mui-icon mui-icon-arrowright arrow-right-position p"></span>
				</li>
				<li id="myParts">我的备件<img src="../../../images/icon_350.png" />
					<span class="mui-icon mui-icon-arrowright arrow-right-position p"></span></li>
				<li id="incomingParts">备件收货<img src="../../../images/icon_351.png" />
					<span class="mui-icon mui-icon-arrowright arrow-right-position p"></span></li>
				<li id="returnParts">备件还货<img src="../../../images/icon_352.png" />
					<span class="mui-icon mui-icon-arrowright arrow-right-position p"></span></li>
				<li id="transferParts">备件转移<img src="../../../images/icon_353.png" />
					<span class="mui-icon mui-icon-arrowright arrow-right-position p"></span></li>
				<li id="searchPartsTL" style="display: none;">查询团队备件<img src="../../../images/icon_354.png" />
					<span class="mui-icon mui-icon-arrowright arrow-right-position p"></span></li>
				<li id="searchPartsFSE">查询其他FSE备件<img src="../../../images/icon_355.png" />
					<span class="mui-icon mui-icon-arrowright arrow-right-position p"></span></li>
			</ul>
		</div>
		<!-- html代码 end -->

		<!-- js代码 start -->

		<!-- 基础js start -->
		<script src="../../../js/mui.min.js"></script>
		<script src="../../../js/utils/h.js"></script>
		<script src="../../../js/constant.js"></script>
		<script src="../../../js/common.js"></script>
		<script src="../../../js/utils/base64.js"></script>
		<script src="../../../js/utils/md5.js"></script>
		<script src="../../../js/utils/sortMap.js"></script>
		<script src="../../../js/utils/http.js"></script>
		<script src="../../../js/app.js"></script>
		<!-- 基础js end -->

		<script type="text/javascript" charset="utf-8">
			(function($, doc) {
				$.init();

				$.plusReady(function() {
					var position = app.getUser().position;
					if (position === "Team Leader") {
						h("#searchPartsTL").show();
					} else {
						h("#searchPartsTL").hide();
					}
					
					// 备件申请
					h("#applyParts").tap(function() {
						app.jumpTo("applyParts.html", "view/workArea/parts/applyParts",
						null);
					});
					// 我的备件
					h("#myParts").tap(function() {
						app.jumpTo("myParts.html", "view/workArea/parts/myParts",
						null);
					});
					// 备件待收货列表
					h("#incomingParts").tap(function() {
						app.jumpTo("incomingParts.html", "view/workArea/parts/incomingParts",
						null);
					});
					// 备件还货
					h("#returnParts").tap(function() {
						app.jumpTo("returnParts.html", "view/workArea/parts/returnParts",
						null);
					});
					// 备件转移
					h("#transferParts").tap(function() {
						app.jumpTo("transferParts.html", "view/workArea/parts/transferParts",
						null);
					});
					// team备件查询
					h("#searchPartsTL").tap(function() {
						app.jumpTo("searchPartsTl.html", "view/workArea/parts/searchPartsTl",
						null);
					});
					// 其他fse备件查询
					h("#searchPartsFSE").tap(function() {
						app.jumpTo("searchPartsFse.html", "view/workArea/parts/searchPartsFse",
						null);
						// var position = app.getUser().position;
						// if (position === "Team Leader") {
						// 	app.jumpTo("searchPartsTl.html", "view/workArea/parts/searchPartsTl",
						// 	null);
						// } else {
						// 	app.jumpTo("searchPartsFse.html", "view/workArea/parts/searchPartsFse",
						// 	null);
						// }
					});
				});
			}(mui, document));
		</script>
		<!-- js代码 end -->
	</body>
</html>
